<template name="channel_tools">
  <div class="channel-tools">
    {{#each tool in tools}}
      <div class="channel-tools-panel{{#if @index}} d-none{{/if}}" id="{{tool.id}}">
        <div class="channel-tools-panel-header">
          {{tool.name}}
        </div>
        {{> Template.dynamic template=tool.template}}
      </div>
    {{/each}}
    <div class="channel-tools-btns">
      {{#each tools}}
        <button type="button" class="channel-tools-button{{#unless @index}} active{{/unless}}" data-target-panel="#{{id}}">
          <i class="material-icons">{{icon}}</i>
        </button>
      {{/each}}
    </div>
  </div>
</template>